import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:leader_help/utils/component/list/postioned_table.dart';
import '../index.dart';
import 'package:leader_help/utils/util.dart';

import 'widgets.dart';

class QuestionDetailContentView extends GetView<QuestionDetailController> {
  const QuestionDetailContentView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.fromLTRB(10.r, 10.r, 10.r, 0),
      decoration: BoxDecoration(
        color: Colors.white,
        borderRadius: BorderRadius.circular(6.r),
      ),
      child: Column(
        children: [
          const QuestionDetailTabsView(),
          Expanded(
            child: PositionedTableView(
              controller: controller.state.scrollCtrl,
              listener: controller.state.positionListener,
              data: controller.state.list,
              padding: EdgeInsets.symmetric(horizontal: 10.r),
              hasSeprator: false,
            ),
          )
        ],
      ),
    );
  }
}
